import pymysql

conn=pymysql.connect(
    host='127.0.0.1',
    user='root',
    password='heyong728350858',
    database='blog',
    port=3306
)

cur=conn.cursor()

cur.execute('insert into user values (null,"4","123","2")')
conn.commit()